PROJECT(chipDBTool)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 
SET(CMAKE_C_COMPILER g++)
ADD_DEFINITIONS(-std=c++11)
INCLUDE_DIRECTORIES(include include/mysqlconnlib)
AUX_SOURCE_DIRECTORY(./src dir_src)
AUX_SOURCE_DIRECTORY(./include/tinyXml dir_src)
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/lib)
LINK_LIBRARIES(chipDBTool libmysqlcppconn-static.a pthread dl)
SET(EXECUTABLE_OUTPUT_PATH ./bin) 
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
ADD_EXECUTABLE(chipDBTool ${dir_src}) 
